{% extends 'base.html' %}
{% block header %}
    <!-- iCheck 表单样式文件 -->
    <link href="../static/vendors/iCheck/skins/flat/green.css" rel="stylesheet">
    <!-- Bootstrap -->
    <link href="cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css">
    <!-- Datatables -->
    <link href="../static/vendors/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
    <link href="../static/vendors/datatables.net-buttons-bs/css/buttons.bootstrap.min.css" rel="stylesheet">
    <link href="../static/vendors/datatables.net-fixedheader-bs/css/fixedHeader.bootstrap.min.css" rel="stylesheet">
    <link href="../static/vendors/datatables.net-responsive-bs/css/responsive.bootstrap.min.css" rel="stylesheet">
    <link href="../static/vendors/datatables.net-scroller-bs/css/scroller.bootstrap.min.css" rel="stylesheet">
    <style>

    </style>
{% endblock %}

{% block main %}
    <div class="right_col" role="main">
        <div class="">
            <div class="page-title">
                <div class="title_left">
                    <h3>个税详情 <small> 当前时间： {{ date }}</small></h3>
                </div>
            </div>

            <div class="clearfix"></div>

            <div class="row">
                <div class="col-md-12 col-sm-12 ">
                    <div class="x_panel">
                        <div class="x_title">
                            <h2>个税展示 <small>分表</small></h2>
                            <ul class="nav navbar-right panel_toolbox">
                                <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                </li>
                                <li><a href="/个税分表" class="btn btn-success" data-toggle="tooltip"
                                       data-placement="top" title="下载">
                                    <i class="fa fa-download custom-icon-color"></i></a>
                                </li>
                            </ul>
                            <div class="clearfix"></div>
                        </div>
                        <div class="x_content">
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="card-box table-responsive">
                                        <table id="tax_month_table" class="table table-striped table-bordered"
                                               style="width:100%">
                                            <thead>
                                            <tr>
                                                <th>序号</th>
                                                <th>人员分类</th>
                                                <th>属地</th>
                                                <th>身份证</th>
                                                <th>姓名</th>
                                                <th>自然月</th>
                                                <th>文件名</th>
                                                <th>是否首次插入</th>
                                                <th>月收入</th>
                                                <th>月应税</th>
                                                <th>月个税</th>
                                                <th>入职日期</th>
                                                <th>最后更新时间</th>
                                                <th>操作运营</th>
                                                <th>是否发放</th>
                                            </tr>
                                            </thead>


                                            <tbody>
                                            {% for item in tax_month_income_table %}
                                                <tr>
                                                    <td>{{ item.id }}</td>
                                                    <td>{{ item.classes }}</td>
                                                    <td>{{ item.addr }}</td>
                                                    <td>{{ item.id_card }}</td>
                                                    <td>{{ item.name }}</td>
                                                    <td>{{ item.calendar_month }}</td>
                                                    <td>{{ item.filename }}</td>
                                                    <td>{{ item.is_first }}</td>
                                                    <td>{{ item.month_income }}</td>
                                                    <td>{{ item.month_taxincome }}</td>
                                                    <td>{{ item.month_tax }}</td>
                                                    <td>{{ item.entry_date }}</td>
                                                    <td>{{ item.dtime }}</td>
                                                    <td>{{ item.operations_personnel }}</td>
                                                    <td>{{ item.isgrant }}</td>
                                                </tr>
                                            {% endfor %}
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}

{% block footer %}

    <!-- 引入 iCheck 用于复选框和单选框样式及功能增强 -->
    <script src="../static/vendors/iCheck/icheck.min.js"></script>
    <!-- Datatables -->
    <script src="../static/vendors/datatables.net/js/jquery.dataTables.min.js"></script>
    <script src="../static/vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
    <script src="../static/vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
    <script src="../static/vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>
    <script src="../static/vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>
    <script src="../static/vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>
    <script src="../static/vendors/datatables.net-buttons/js/buttons.print.min.js"></script>
    <script src="../static/vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>
    <script src="../static/vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
    <script src="../static/vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
    <script src="../static/vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>
    <script src="../static/vendors/datatables.net-scroller/js/dataTables.scroller.min.js"></script>
    <script src="../static/vendors/jszip/dist/jszip.min.js"></script>
    <script src="../static/vendors/pdfmake/build/pdfmake.min.js"></script>
    <script src="../static/vendors/pdfmake/build/vfs_fonts.js"></script>
{% endblock %}